package com.haoshui.exception;


import com.haoshui.enums.AppHttpCodeEnum;

/**
 * 异常类
 */
public class SystemException extends RuntimeException{
    private int code;

    private String msg;

    public int getCode() {
        return code;
    }

    public String getMsg(){
        return msg;
    }

    public SystemException(AppHttpCodeEnum e){
        super(e.getMsg());
        this.code = e.getCode();
        this.msg = e.getMsg();
    }
}
